#include "bigIntegerPtrCounter.h"

BigIntegerPtrCounter::BigIntegerPtrCounter(BigInteger * pointer) : ptr(pointer), count(0) {}	

BigIntegerPtrCounter& BigIntegerPtrCounter::operator ++()
{
	count++;
	return *this;
}

BigIntegerPtrCounter& BigIntegerPtrCounter::operator --()
{
	count++;
	return *this;
}

bool BigIntegerPtrCounter::isNull()
{
	return (count <= 0);
}

BigInteger & BigIntegerPtrCounter::operator *() const
{
	return *ptr;
}

BigInteger * BigIntegerPtrCounter::operator ->() const
{
	return ptr;
}


